package com.gzk.feignClients;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.Map;

@FeignClient(value = "service-store",fallbackFactory = StoreFeignFallbackFactory.class)
public interface StoreFeign {

    @RequestMapping(value = "/store/reduce",method = RequestMethod.POST)
    Integer reduceStore(@RequestBody Map<String,Long> map);
}
